package com.erdos.hyt.mall.mapper;

import java.util.List;

import com.erdos.hyt.mall.model.MallConsigneeAddress;

public interface MallConsigneeAddressMapper {
    


    /**
     * 添加收货地址
     * @param mallConsigneeAddress
     * @return
     * @author liurong
     */
    int insertMallConsigneeAddress(MallConsigneeAddress mallConsigneeAddress);

    /**
     * 获取收货地址信息
     * @param addressId
     * @return
     * @author liurong
     */
    MallConsigneeAddress getMallConsigneeAddressById(Integer addressId);
    /**
     * 根据用户ID获取收货地址列表
     * @param userId
     * @return
     * @author liurong
     */
    List<MallConsigneeAddress> getAddressListByUserId(Integer userId);

    /**
     * 更新收货地址
     * @param mallConsigneeAddress
     * @return
     * @author liurong
     */
    int updateMallConsigneeAddress(MallConsigneeAddress mallConsigneeAddress);

}